function justifyHeight() {
    var side = $('.side');
    var content = $('.main>.content');
    var table = $('.main>table');
	side.height(0);
	content.height(0);
    table.height(0);
    var documentHeight = $(document).height();
	side.height(documentHeight-111);
	content.height(documentHeight-160);
    table.height(documentHeight-200);
}

$(window).resize(function() {
    justifyHeight();
});

$(document).ready(function() {
    justifyHeight();
    $('td>.checkbox:first-child').addClass('first');
    $('.submenu span').click(function() {
    	$(this).next().slideToggle();
        $(this).parent().toggleClass('fold');
	});
});
